


export const tableColumns = [
    {
        title: 'ID',
        dataIndex: 'id',
        key: 'id',
        width: 100,
        scopedSlots: {customRender: 'id'},
        fixed: 'left',
        align: 'left'
    },
    {
        title: '提出部门',
        dataIndex: 'demandDepartment',
        key: 'demandDepartment',
        align: 'left',
        width: 120,
    },
    {
        title: '开发部门',
        dataIndex: 'developDepartment',
        key: 'developDepartment',
        align: 'left',
        width: 120,
    },
    {
        title: '场景',
        dataIndex: 'sceneName',
        key: 'sceneName',
        align: 'left',
        width: 120,

    },
    {
        // title: '策略类型',
        dataIndex: 'scFlag',
        key: 'scFlag',
        scopedSlots: {customRender: 'scFlag'},
        scopedSlotsColumn:true,
        align: 'left',
    },
    {
        title: '策略名称',
        dataIndex: 'strategyName',
        key: 'strategyName',
        align: 'left',
        width: 260,
    },
    {
        title: '策略描述',
        dataIndex: 'strategyDesc',
        key: 'strategyDesc',
        align: 'left'
    },
    {
        title: '触发前采集时长',
        dataIndex: 'collectTimeBefore',
        key: 'collectTimeBefore',
        align: 'left',
        width: 120
    },
    {
        title: '触发后采集时长',
        dataIndex: 'collectTimeAfter',
        key: 'collectTimeAfter',
        align: 'left',
        width: 120,
    },
    // {
    //     title: '数据包内容',
    //     dataIndex: 'content',
    //     key: 'content',
    //     align: 'left'
    // },
    {
        // title: '优先级',
        dataIndex: 'priority',
        key: 'priority',
        scopedSlots: {customRender: 'priority'},
        scopedSlotsColumn:true,
        align: 'left',
    },
    {
        title: '单日采集次数',
        dataIndex: 'count',
        key: 'count',
        align: 'left',
        width: 120,
    },
    {
        // title: '状态',
        dataIndex: 'status',
        key: 'status',
        scopedSlots: {customRender: 'status'},
        scopedSlotsColumn:true,
        align: 'left',
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        key: 'createTime',
        align: 'left',
        width: 120,
    },
    {
        title: '操作',
        dataIndex: 'operation',
        key: 'operation',
        scopedSlots: {customRender: 'operation'},
        width: 120,
        fixed: 'right',
        align: 'left'
    },
]

export const policyGroupTableColumns=[
    {

        dataIndex: 'id',
        key: 'id',
        width: 120,
        fixed: 'left',
        scopedSlotsColumn:true,
    },
    {
        title: '策略组',
        dataIndex: 'groupName',
        key: 'groupName',
        width: 80,
    },

    {
        title: '策略描述',
        dataIndex: 'groupDesc',
        key: 'groupDesc',

    },
    {
        // title: '采集时长',
        dataIndex: 'content',
        key: 'content',
        scopedSlotsColumn:true,
    },

    {
        // title: '创建时间',
        dataIndex: 'createTime',
        key: 'createTime',
        scopedSlotsColumn:true,
    },
    {
        title: '创建人',
        dataIndex: 'creatorName',
        key: 'creatorName',
        width: 100
    },
    {
        dataIndex: 'status',
        key: 'status',
        scopedSlotsColumn:true,
    },

    {
        title: '操作',
        dataIndex: 'operation',
        key: 'operation',
        scopedSlots: {customRender: 'operation'},
        width: 120,
        align: 'left',
        fixed: 'right'
    },
]
export const historicalConfigurationTableColumns = [
    {
        title: '配置日期',
        dataIndex: 'createTime',
        key: 'createTime',
        width: 120,
        fixed: 'left'
    },
    {
        title: '申请人',
        dataIndex: 'applicantName',
        key: 'applicantName',
        width: 100,
    },
    {
        title: '申请人部门',
        dataIndex: 'applicantDepartment',
        key: 'applicantDepartment',

    },
    {
        title: '配置人',
        dataIndex: 'creatorName',
        key: 'creatorName',
        width: 100,


    },
    {
        title: '配置人部门',
        dataIndex: 'creatorDepartment',
        key: 'creatorDepartment',

    },
    {
        title: '配置方案',
        dataIndex: 'configInfoId',
        key: 'configInfoId',
        scopedSlots: {customRender: 'configInfoId'},
        width: 100,
    },
    {
        title: '配置描述',
        dataIndex: 'configStrategyInfos',
        key: 'configStrategyInfos',

    },
    {
        title: '配置车辆数',
        dataIndex: 'configCarNumbers',
        key: 'configCarNumbers',
        width: 100,
    },
    {
        title: '操作类型',
        dataIndex: 'operationType',
        key: 'operationType',
        scopedSlots: {customRender: 'operationType'},
        width: 100,
    },

    {
        title: '操作',
        dataIndex: 'operation',
        key: 'operation',
        scopedSlots: {customRender: 'operation'},
        width: 120,
        align: 'left',
        fixed: 'right'
    },
]

export const selectedPolicyTableColumns = [
    {
        title: '策略ID',
        dataIndex: 'id',
        key: 'id',
        width: 120,
        fixed: 'left'
    },
    {
        title: '需求部门',
        dataIndex: 'demandDepartment',
        key: 'demandDepartment',
        width: 120,
    },
    {
        title: '提出部门',
        dataIndex: 'developDepartment',
        key: 'developDepartment',
        width: 120,
    },
    {
        title: '场景',
        dataIndex: 'sceneName',
        key: 'sceneName',
        width: 120,
    },
    {
        title: '策略名称',
        dataIndex: 'strategyName',
        key: 'strategyName',
    },
    {
        title: '策略描述',
        dataIndex: 'strategyDesc',
        key: 'strategyDesc',

    },
    {
        title: '数据包内容',
        dataIndex: 'content',
        key: 'content',

    },
    {
        title: '优先级',
        dataIndex: 'priority',
        key: 'priority',
        scopedSlots: {customRender: 'priority'},
        width: 120,
    },
    {
        title: '状态',
        dataIndex: 'status',
        key: 'status',
        scopedSlots: {customRender: 'status'},
        width: 120,
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        key: 'createTime',

    }
]

export const searchConfig = [
    {
        type: 'input',
        key: 'id',
        attrs: {
            placeholder: 'TriggerID',
        }
    },
    {
        type: 'input',
        key: 'developDepartment',
        attrs: {
            placeholder: '提出部门',
        }
    },
    {
        type: 'input',
        key: 'strategyName',
        attrs: {
            placeholder: '策略名称',
        }
    },

    {
        type: 'select',
        key: 'priority',
        attrs: {
            placeholder: '优先级',
        },
        options: []
    },

    {
        type: 'select',
        key: 'status',
        attrs: {
            placeholder: '状态',
        },
        options: [{
            value: 0,
            label: '暂停',
        }, {
            value: 1,
            label: '启用',
        }]
    },
    {
        type: 'dataPicker',
        key: 'createDate',
        attrs: {
            placeholder: '创建时间',
        }
    },
]

export const policyGroupSearchConfig=[
    {
        type: 'input',
        dataIndex:'id',
        key: 'id',
        attrs: {
            placeholder: '请输入策略组ID',
            inputStyle: 'width:200px',
        }
    },
    {


        type: 'definition',
        dataIndex:'creator',
    },
    {
        type: 'dataPicker',
        key: 'createTime',
        attrs: {
            placeholder: '创建时间',
        }
    },

    //
    // {
    //     type: 'select',
    //     key: 'orderByType',
    //     attrs: {
    //         placeholder: '排序',
    //     },
    //     options: [{
    //         value: 1,
    //         label: '策略组ID升序',
    //     }, {
    //         value: 2,
    //         label: '策略组ID降序',
    //     }, {
    //         value: 3,
    //         label: '创建时间升序',
    //     }, {
    //         value: 4,
    //         label: '创建时间降序',
    //     }, {
    //         value: 5,
    //         label: '状态升序',
    //     }, {
    //         value: 6,
    //         label: '状态降序',
    //     }]
    // },

]
export const fileListSearchConfig=[
    {
        type: 'definition',
        dataIndex:'Biz',
    },
    {
        type: 'definition',
        dataIndex:'SubBiz',
    },
  
]
export const bizTriggerSearchConfig=[
    {
        type: 'definition',
        dataIndex:'Biz',
    },
    {
        type: 'input',
        key: 'triggerId',
        attrs: {
            placeholder: 'TriggerID',
        }
    },
    {
        type: 'input',
        key: 'strategyName',
        attrs: {
            placeholder: '策略名称',
        }
    },
  
]
export const RecycleBinsearchConfig = [
    {
        type: 'input',
        key: 'id',
        attrs: {
            placeholder: 'TriggerID',
        }
    }
]
